home *** CD-ROM | disk | FTP | other *** search
- PROGRAM PROG3;
- {$U+ Copyright (C), 1985 by Lyle Faurot. All rights reserved.
-
- New Topics: Comments
- Output with the Write and WriteLn statements
- Compiler directive - $U+
-
- Note that this block of comments, extending over several lines
- is int WriteLn('* *'); {the beginning of this }
- WriteLn('* * * * * * * * * * * * * * * * * *'); {program would include }
- { some of the non-comment statements, making them ineffective. }
-
- {The fact that statements can be temporarily killed by commenting them
- out illustrates the usefulness of a second type of comment delimiter.
-
- Try killing several of the WriteLn statements above by inserting
- (* to the left of the first statement to be killed and
- *) to the left of the statement AFTER the last statement to be killed.
- Run the program to see the results.
- }
-
- WriteLn;
- Write ('Check carefully when ');
- Write ('you run this program. ');
- Write ('How many lines ');
- WriteLn('are printed');
- WriteLn('by this last set of Write and WriteLn statements?');
-
- E srdi imnsloqarhw sssssssssssssssssssssssssssssssssssssssss; {the beginning of this }
- WriteLn('* * * * * * * * * * * * * * * * * *'); {program would include }
- { some of the non-comment statements, making them ineffective. }
-
- {The fact that statements can be temporarily killed by commenting them
- out illustrates the usefulness of a second type of comment delimiter.
-
- Try killing several of the WriteLn statements above by inserting
- (* to the left of the first statement to be killed and
- *) to the left of the statement AFTER the last statement to be killed.
- Run the program to see the results.
- }
-
- WriteLn;
- Write ('Check carefully when ');
- Write ('you run this program. ');
- Write ('How many lines ');
- WriteLn('are printed');
- WriteLn('by this last set of Write and WriteLn statements?');
-
- END. {PRG3}
-